package com.chzn.component;

import org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author houchenkai
 * @Created Date: 2020/11/9 16:56
 * @ClassName
 */
@Component
public class UserServiceMergedBeanDefinitionPostProcessor implements MergedBeanDefinitionPostProcessor {
	@Override
	public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) {
		if (UserService.class.equals(beanType)){
			System.out.println("实例化前-----------beanDefinition回调---------实例化后");
		}

	}

	@Override
	public void resetBeanDefinition(String beanName) {

	}
}
